package Contact;
import java.util.Arrays;

public class Contactsllist {
    public int s=3;
    Contacts[] contactsllist=new Contacts[10];

    public Contactsllist() {
        contactsllist[0]=new Contacts("xx",12,"123","12345");
        contactsllist[1]=new Contacts("xxx",12,"122","12345");
        contactsllist[2]=new Contacts("xxx",13,"445","45678");
        this.s=3;
    }

    public int getS() {
        return s;
    }
    public void Add(Contacts contacts,int s){
        contactsllist[s-1]=contacts;
    };
    public void Dul(int i){
        for (int j = i; j < getS(); j++) {
            contactsllist[j]=contactsllist[j+1];
        }
        contactsllist[getS()-1]=null;
    }
    public Contacts Show(int s){
        return contactsllist[s];
    }

}

